/*
 * SpringSprite.cpp
 *
 *  Created on: Dec 14, 2011
 *      Author: jianli
 */

#include "SpringSprite.h"

bool SpringSprite::collide(Sprite* s) {
	if (!collided) {
		collided = true;
		//let doodle fly
		s->velocityY(-650.0);
		cout<<"fly"<<endl;
	}
	return false;
}

void SpringSprite::update(Uint32 ticks) {
	if (collided) {
		advanceFrame(ticks);
	}
}

